package com.lj.demo.eduservice.client;

import com.lj.demo.commonutils.UcenterMember;
import com.lj.demo.eduservice.client.impl.UcenterClientImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: liujiang
 * @Date: 2020/12/29/18:26
 * @Description:
 */
@Component
@FeignClient(name = "service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {

    @ApiOperation(value = "根据token字符串获取用户信息")
    @GetMapping("/ucenterService/ucenterMember/getInfo/{id}")
    public UcenterMember getInfo(@PathVariable("id") String id);
}
